Place gMail.mqh in the experts/include folder.
Place SMail.dll in the experts/libraries folder.

The SendMail.mq4 file is a sample of how the coding should be done and incorporated into another indicator or expert.

Original website detailing how to setup the function properly:
http://www.metatrader.info/node/108